package training.bms.presentation;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import training.bms.business.Blog;
import training.bms.business.BlogController;
import training.bms.business.BlogSearchOptions;

import training.framework.business.AbstractEntityController;
import training.framework.presentation.AbstractEditEntity;

@ManagedBean
@SessionScoped
public class EditBlog extends AbstractEditEntity<Integer, Blog, BlogSearchOptions, BlogPanel> {

	private BlogController controller;
	
	public EditBlog() {
		super(BlogPanel.class, 
			  "editBlog", 
			  "Blog has been successfully saved");
		
		controller = new BlogController();
	}


	@Override
	protected AbstractEntityController<Integer, Blog, BlogSearchOptions> getController() {
		return controller;
	}
}